<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>class类</title>
	</head>
	<body>
		<script>
			class Point {
				constructor() {
					return new Date();
				}
			}
			let p = new Point();   //返回为Date对象
			console.log(p);
		</script>
	</body>
</html>
